From: Daniel De Graaf Date: Thu, 21 Mar 2013 20:11:29 +0000 (-0400) Subject: stubdom/Makefile: Fix gmp extract rule X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7044 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=be8d8d634d1babbf52a83cda139554e0605660c5;p=xen.git stubdom/Makefile: Fix gmp extract rule When NEWLIB_STAMPFILE is updated but gmp has already been extracted, the mv command will incorrectly create a subdirectory instead of renaming. Remove the old target before renaming to fix this. Signed-off-by: Daniel De Graaf Acked-by: Ian Campbell --- diff --git a/stubdom/Makefile b/stubdom/Makefile index ddb97f4e9a..674132a9db 100644 --- a/stubdom/Makefile +++ b/stubdom/Makefile @@ -162,6 +162,7 @@ ifeq ($(XEN_TARGET_ARCH), x86_32) endif gmp-$(XEN_TARGET_ARCH): gmp-$(GMP_VERSION).tar.bz2 $(NEWLIB_STAMPFILE) tar xjf $< + rm $@ -rf || : mv gmp-$(GMP_VERSION) $@ #patch -d $@ -p0 < gmp.patch cd $@; CPPFLAGS="-isystem $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include $(TARGET_CPPFLAGS)" CFLAGS="$(TARGET_CFLAGS)" CC=$(CC) $(GMPEXT) ./configure --disable-shared --enable-static --disable-fft --without-readline --prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf